package com.eastedu.client.encrypt;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * The interface File encrypt client.
 *
 * @author 袁松明
 */
@FeignClient(name = "infrastructure-decrypt-service", url = "http://132.232.75.93:7012/")
public interface FileEncryptClient {
    /**
     * Create file encrypt list.
     *
     * @param fileId the file id
     * @return the list
     */
    @PostMapping(value = "/api/file-encrypts/{fileId}:retry?version=1.0")
    List<Long> forceEncrypt(@PathVariable Long fileId);
}
